/**
 * 
 */
package com.dianziq.im.server.cmd;

import com.dianziq.im.server.ConnectionService.ConnectionBag;

/**
 * @author Administrator
 *
 */
public class Pull extends Action {

 

	/* (non-Javadoc)
	 * @see com.dianziq.im.server.cmd.Cmd#handle(com.dianziq.im.server.cmd.Context)
	 */
	@Override
	public void handle(Context c) {
	 
		int userId=c.getUserId();
		if(userId==0){
			c.sendError("Cannot find user!");
			return;
		}
		ConnectionBag back=c.service.get(userId);
		back.addChannel(c.ch, c.getIntParam("from"), c.getIntParam("key"));

	}

	 

}
